package com.i18n;

import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;

public class Test2 {

	public static void main(String[] args) {
		
        Locale locale = Locale.getDefault();
        ResourceBundle bundler = ResourceBundle.getBundle("inter", locale);
	    String value = bundler.getString("hello");

        String result =  MessageFormat.format(value, new Object[]{"上海"});
        System.out.println(result);
	}

}
